package com.shwread.android.ui.dialog;


import android.support.v4.view.ViewPager.LayoutParams;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.shwread.android.qysw.activity.BaseBusinessActivity;
import com.shwread.android.qysw10000204.R;


public class QRcodeDownloadDialog
        extends
        CommonDialog
{
	private BaseBusinessActivity bActivity ;
	private ImageView ivQRcode;
	private TextView tvText;
	
	public QRcodeDownloadDialog(BaseBusinessActivity bActivity) {
	    super(bActivity);
	    this.bActivity = bActivity;
	    findView();
	    setCanceledOnTouchOutside(true);
	    getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
		getWindow().setGravity(Gravity.CENTER_VERTICAL);
    }
	
	private void findView() {
	   View view = LayoutInflater.from(bActivity).inflate(R.layout.qrcode_download_dialog, null);
	   ivQRcode = (ImageView) view.findViewById(R.id.qrcode_download_dialog_qrcode_icon_iv);
	   tvText = (TextView) view.findViewById(R.id.qrcode_download_dialog_qrcode_text_tv);
	   setContentView(view);
    }

	@Override
    public void dismiss() {
	    super.dismiss();
    }

	@Override
    public void show() {
	    // TODO Auto-generated method stub
	    super.show();
    }
	
}
